package com.kazu.comment.service.impl;

import com.kazu.comment.entity.dao.CommentInfo;
import com.kazu.comment.mapper.CommentInfoMapper;
import com.kazu.comment.service.CommentInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 留言信息 服务实现类
 * </p>
 *
 * @author kazu
 * @since 2023/02/19 10:14
 */
@Service
public class CommentInfoServiceImpl extends ServiceImpl<CommentInfoMapper, CommentInfo> implements CommentInfoService {
	
	@Autowired
	private CommentInfoMapper commentInfoMapper;
	
	/**
	 * 查询所有数据非分页
	 *
	 * @return 所有数据
	 */
	@Override
	public List<CommentInfo> getAll() {
		return commentInfoMapper.selectList(null);
	}
}
